#########################################
#         File name   :nsfocus-install-env.sh
#         Author      :kangkangliang
#         File desc   :
#         Mail        :liangkangkang@yahoo.com
#         Create time :2017-02-19
#########################################
#!/usr/bin/bash

# Ubuntu update
sudo apt-get update

# Vim installl
sudo apt-get -y install vim

# Git install
sudo apt-get -y install git

# cmake
sudo apt-get -y install cmake

# Download tools
sudo apt-get -y install  wget axel htop nload ethstatus iotop glances stardict curl tree lrzsz

sudo apt-get install weechat-curses -y

# vbox depend lib
sudo apt-get install libsdl1.2debian

# cscope
sudo apt-get -y install cscope ctags

# google input method
sudo apt-get install ibus-googlepinyin -y

# CtrlP plugins depend
sudo apt-get install silversearcher-ag
#
# pyenv and after finish and go on accord to network speed
# sudo curl -L https://raw.github.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash

# zsh and oh-my-zsh
sudo apt-get install -y zsh

# autojump
# https://github.com/wting/autojump
# git clone git://github.com/joelthelion/autojump.git
# cd autojump
# ./install.py or ./uninstall.py

# docker
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh - #来加速
sudo service docker start
sudo docker run -it hello-world

# Python configure
sudo apt-get install -y python-dev build-essential
# pip
sudo python configure/get-pip.py

# Java8 configure
#http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
sudo mkdir /usr/lib/jdk
# tar xf java.tar.gz && sudo mv java/* /usr/lib/jdk

# Scala configure
# http://www.scala-lang.org/download/all.html
sudo mkdir /usr/local/scala
# tar xf scala.tar.gz && sudo mv scala/* /usr/local/scala

# maven
# http://maven.apache.org/download.cgi
sudo mkdir /usr/local/mvn

# pycharm
# http://www.jetbrains.com/pycharm/download/#section=linux

# idea
# http://www.jetbrains.com/idea/download/#section=linux


# sudo apt-get -y install

# tmux Prerequisites
sudo apt-get install -y libevent-dev
sudo apt-get install -y ncurses-dev

# sublime to vim mode
# http://www.sublimetext.com/3

# virtualbox
# https://www.virtualbox.org/wiki/Linux_Downloads

# win7
# axel -n 100 http://down.smcool.com/new/win7/32/360/YLMF_GHOSTWIN7SP1_X86_YN2017.ISO

# wall
# git clone https://github.com/XX-net/XX-Net

# neovim

# xx-net
sudo apt-get install libnss3-tools -y
sudo apt-get install python-gtk2 -y
sudo apt-get install python-openssl -y
sudo apt-get install libffi-dev -y
sudo apt-get install python-appindicator -y
sudo apt-get install -y python-gtk2
sudo apt-get install libnss3-tools -y

# some url download

## nsfocus finish and some useful command
# git clone https://github.com/XX-net/XX-Net
# sh -s /bin/zsh
# sudo curl -L https://raw.github.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
# axel -n 100 http://down.smcool.com/new/win7/32/360/YLMF_GHOSTWIN7SP1_X86_YN2017.ISO
# git clone https://github.com/XX-net/XX-Net
# jdk http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
# idea download
# scala download http://www.scala-lang.org/download/

# google
# sudo apt-get install -f
# sudo apt-get udpate
# sudo dpkg -i google.deb
#
# single script
# dot configure file oschia
git clone https://git.oschina.net/lkk_gczx/configure
# download tmux
# http://tmux.github.io/
tar xf configure/software/tmux-2.3.tar.gz -C ~
cd tmux-2.3
./configure
make
sudo make install
cd
git clone https://github.com/lkkandsyf/.tmux
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp configure/dot-file/zshrc ~/.zshrc
#sh -s /bin/zsh
source ~/.zshrc
#mvn
axel -n 10 http://mirrors.hust.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar xf apache-maven-3.3.9-bin.tar.gz
#sudo mv apache-maven-3.3.9/* /usr/local/mvn/
# tmux attach remote login
# configure file
#
#cp ~/configure/dot-file/gitconfig ~/.gitconfig
#cp ~/configure/dot-file/Xmodmap ~/.Xmodmap
#cp ~/configure/dot-file/ideavimrc ~/.ideavimrc
#cp ~/configure/dot-file/ycm_extra_conf ~/.ycm_extra_conf.py
#xmodmap ~/.Xmodmap
#ln -s -f .tmux/.tmux.conf
#cp .tmux/.tmux.conf.local ~/
